/**
 * 
 */
package net.phoenix.repository.query.jql;

import javax.jcr.query.qom.Constraint;
import javax.jcr.query.qom.Or;

/**
 * @author lixf
 *
 */
public class OrAST extends ConstraintAST implements Or{

	/**
	 * 
	 */
	private static final long serialVersionUID = -610707836003135637L;

	@Override
	public Constraint getConstraint1() {
		return (Constraint)this.getFirstChild();
	}

	@Override
	public Constraint getConstraint2() {
		return (Constraint)this.getFirstChild().getNextSibling();
	}

}

